package com.lepu.app.fun.index.bean;

import org.json.JSONException;
import org.json.JSONObject;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

public class BeanSearchHotKey {

	public String[] Keywords;

	public static BeanSearchHotKey parseJsonData(String dataString) {
		String result = "";
		try {
			JSONObject jsonObject = new JSONObject(dataString);
			JSONObject obj1 = (JSONObject) jsonObject.get("Result");
			JSONObject obj2 = (JSONObject) obj1.get("DetailInfo");

			result = obj2.toString();
		} catch (JSONException e) {
			e.printStackTrace();
		}

		Gson gson = new Gson();
		BeanSearchHotKey item = gson.fromJson(result,
				new TypeToken<BeanSearchHotKey>() {
				}.getType());
		return item;
	}
}
